<template>
    <div class="bgDiv">
      <van-button round type="default" color="#257A8D" class="reloadBtn" @click="pageGoBack">刷新</van-button>
    </div>
  </template>
  
  <script>
  // import httpRequest from '../../request/httpRequest'
  import bridge from '../../request/bridge'
  export default {
    name: '',
    components: {},
    data() {
      return {
  
      }
    },
    mounted() {
    //在模板渲染成html后调用，通常是初始化页面完成后，再对html的dom节点进行一些需要的操作 
    //页面加载完成后 点击前端页面 从原生获取值
      // this.pageGoBack =  bridge.pageGoBack; 
      window.pageGoBack =  this.pageGoBack;
      console.log('我要返回的方法');
		},
    created(){

      
      // 发送title给前端
      var info = {
                  "title": "住院信息",
          'rightBtn':"取消"
              }
    //   bridge.titleInfo(info);
  
    //   // 从前端 拿到token信息
    //   var token = bridge.getToken();
    //   console.log(token);
    //   if(token){
    //     this.$toast.success(token.token);
    //   }
  
      
      // var ddd =  {
          // 			'page': 'this.page',
      //       'aage': 'aaaaa'
          // 		};
      // var aaa = this.$http.getSign(ddd,'11233333');
    },
    methods:{
      pageGoBack(){
        console.log('事发偶偶发挥哦');
        this.$router.back(-1)
      }
    }
  }
  </script>
  
  <style scoped>
  .bgDiv{
    width: 477px;
    height: 367px;
    text-align:center;
    background-color: blue;
  }
  .errorImg{
    margin-top: 270px;
    width: 477px;
      height: 367px;
  }
  
  .errorTitle{
    margin-top: -70px;
    width: 477px;
    float: left;
  }
  .reloadBtn{
    margin-top: 60px;
    width: 330px;
    height: 82px;
    color: aliceblue;
  }
  
  </style>
  